﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace weba
{
    public partial class adddt : System.Web.UI.Page
    {
        sjklqDataContext sj = new sjklqDataContext();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            dongtai sx = new dongtai();
            sx.Id = sj.dongtai.Count() + 1;
            sx.tit = C1InputText1.Text;
            sx.discp = C1Editor1.Text;
            sx.shijian = DateTime.Now;
            sj.SubmitChanges();
            Label2.Text = "更新成功";
        }

        protected void C1Editor1_TextSaved(object sender, EventArgs e)
        {

        }
    }
}